﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using NTwitter;
using System.Collections.ObjectModel;
using System.Drawing;

namespace TwitterClient2.Components
{
    public class PanelFriends : Panel
    {

        private PanelNavigation panelNagigation = new PanelNavigation("Friends", PanelNavigation.PANEL_FRIENDS);
        private PanelUserOverview panelUserOverview = new PanelUserOverview(PanelNavigation.FRIENDS_USERS);

        public PanelFriends()
        {
            InitializeComponent();
        }

        private void InitializeComponent()
        {
            this.SuspendLayout();
            //
            // PanelNavagation
            //
            this.panelNagigation.Location = new Point(10, 0);
            //
            // PanelUserOverview
            //
            this.panelUserOverview.Location = new Point(10, 20);
            // 
            // PanelUsers
            //
            this.Controls.Add(this.panelNagigation);
            this.Controls.Add(this.panelUserOverview);
            this.Size = new System.Drawing.Size(240, 268);
            this.ResumeLayout(false);

        }

        public void updateData(Collection<User> users)
        {
            this.panelUserOverview.uploadData(users);
        }
    }
}
